<?php
return array(
    'controllers' => array(
        'invokables' => array(
            'Album\Controller\Index' => 'Album\Controller\IndexController',
        ),
    ),

    'router' => array(
        'routes' => array(
            'album' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/album',
                    'defaults' => array(
                        'controller' => 'Album\Controller\Index',
                        'action' => 'index'
                    )
                ),
                'may_terminate' => true,
                'child_routes' => array(
                    'jquery' => array(
                        'type' => 'segment',
                        'options' => array(
                            'route' => '/jquery[/:action]',
                            'defaults' => array(
                                'controller' => 'Album\Controller\Index',
                                'action' => 'index'
                            )

                        )
                    ),
                )
            ),
        ),
    ),

    'view_manager' => array(
        'template_map' => array(
            'album/index/index' => __DIR__ .  '/../view/album/index/index.php',
            'error/index'             => __DIR__ . '/../view/error/index.php',
            'error/404'               => __DIR__ . '/../view/error/404.php',
            'site/layout'           => __DIR__ . '/../view/layout/album_layout.php',
        ),
        'template_path_stack' => array(
            __DIR__ . '/../view',
            __DIR__ . '/../view/layout',
            CORE_COMMON_TEMPLATE.'/includes',
            CORE_COMMON_TEMPLATE.'/blocks',
            CORE_COMMON_TEMPLATE.'/tmp'
//            'script_paths'=>array( __DIR__ . '/../view/layout', CORE_TEMPLATE.'/includes')
//           'script_paths'=>CORE_TEMPLATE.'/includes,'.CORE_TEMPLATE.'/blocks,',CORE_TEMPLATE.'/tmp'


        ),
        'display_exceptions' => true,
        'exception_template' => 'error/index',
        'display_not_found_reason' => true,
        'not_found_template'       => 'error/404',
        'default_template_suffix'=>'php',
        'layout' => 'site/layout',

    )


);
?>